import Layout from '@/layout/Layout.vue';
const files = import.meta.globEager('./**/*.js');
const modules = [];

Object.keys(files).forEach(key => {
    if (key === './index.js') return;
    const item = files[key].default;
    modules.push(...item);
});
const routes = [
    {
        path: '/',
        component: Layout,
        children: [...modules]
    }
];
export default routes;
